package myAbstract;

public class Main {
	public static void main(String[] args) {
		A a=new A("1");
		B b=new B("2");
		
		a.showName();
		b.showName();
		
		NoName[] item={a,b};
		
		for(NoName i : item)
		{
			i.worker();
		}
	}
}
